import request2 from "@/utils/request2";

//关键词 列表
export function keyWordList(query) {
  return request2({
    url: "/admin/retail/keyword_index",
    method: "get",
    params: query
  });
}

//关键词 下拉选择
export function keyWordDrop(query) {
  return request2({
    url: "/admin/retail/keyword_alllist",
    method: "get",
    params: query
  });
}


//关键词 修改上下架
export function keyWordSwitch(query) {
  return request2({
    url: "/admin/retail/keyword_switch",
    method: "post",
    data: query
  });
}

//关键词 删除
export function keyWordDelete(query) {
  return request2({
    url:"/admin/retail/keyword_delete",
    method:"get",
    params:query
  })
}

//关键词 获取详情
export function keyWordDetail(query) {
  return request2({
    url:'/admin/retail/keyword_show',
    method:"get",
    params:query
  })
}

//关键词 添加
export function addKeyWord(query) {
  return request2({
    url:'/admin/retail/keyword_store',
    method: "post",
    data: query
  })
}

//关键词 编辑
export function updateKeyWord(query) {
  return request2({
    url:'/admin/retail/keyword_update',
    method: "post",
    data: query
  })
}
